#ifndef HEROPLANE_H
#define HEROPLANE_H

#include <QPixmap>
#include <QRect>
#include "bullet.h"

class HeroPlane
{
public:
    HeroPlane();
    //发射子弹
    void shoot();
    //设置飞机位置
    void setPosition(int x,int y);

    //飞机资源对象
    QPixmap m_Plane;
    //飞机坐标
    int m_X;
    int m_Y;

    //飞机判定边界
    QRect m_Rect;

    //弹匣
    Bullet m_bullets[BULLET_NUM];
    Bullet m_bullets1[BULLET_NUM];

    //间隔
    int m_recorder;
};

#endif // HEROPLANE_H
